]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Update the icon even if we don't have a connection
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 16 Aug 2013 23:32:54 +0000 (19:32 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 16 Aug 2013 23:34:56 +0000 (19:34 -0400)
If we don't have a connection at startup or we transition from
having a connection to not having a connection, we need to make
sure we hide the correct indicators.

js/ui/status/network.js

index 2b5efebd6d89e1e6f0de1ac2c67b10181f950630..c2a2686a420c06a53c884c0e763a0b0eaa013e0c 100644 (file)
@@ -1498,8 +1498,9 @@ const NMApplet = new Lang.Class({
         if (this._mainConnection) {
             let dev = this._mainConnection._primaryDevice;
             this._mainConnectionIconChangedId = dev.connect('icon-changed', Lang.bind(this, this._updateIcon));
-            this._updateIcon();
         }
+
+        this._updateIcon();
     },
 
     _notifyActivated: function(activeConnection) {